package com.tiger.project.domain.vo;

import cn.hutool.core.date.DateUnit;
import cn.hutool.core.date.DateUtil;
import lombok.Data;

import java.time.temporal.ChronoUnit;

/**
 * @author Lyn 宋开放
 * @date 2023-01-03 11:55
 **/

@Data
public class AssetStatisticsExportVO {

    private Integer idx;

    private String  assetNo;

    private String assetName;

    private String address;

    private String propertyArea;
    private String classification;

    private String hasPropertyRight;

    private String propertyOwnerName;

    private String type;

    private String propertyCertification;
    private String divisionArea;

    private String csId;

    private String tenantryName;

    private String rentArea;

    private String  cashPledge;

    public Long getYears() {
        return DateUtil.between(DateUtil.parseDate(beginTime),DateUtil.parseDate(endTime), DateUnit.of(ChronoUnit.YEARS));
    }

    private Long years;
    private String assetPlace;

    private String rentUse;
    private String beginTime;

    private String endTime;

    private String yearlyRent;

    private String evaluateName;

    private String evaluate;

    private String evaluateYear;
}
